<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
	<div class="x_panel">
		<div class="x_content">
			<p class="text-muted font-13 m-b-30"></p>
			<div id="datatable-responsive_wrapper"
				class="dataTables_wrapper form-inline dt-bootstrap no-footer">
				<div class="row">
					<div class="col-sm-12">
					<a href="${pageContext.request.contextPath}/dev/flatform/app/appinfoadd" class="btn btn-success btn-sm">新增APP基础信息</a>
						<table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap dataTable no-footer dtr-inline collapsed"
							cellspacing="0" width="100%" role="grid" aria-describedby="datatable-responsive_info" style="width: 100%;">
							<thead>
								<tr role="row">
									<th class="sorting_asc" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="First name: activate to sort column descending"
										aria-sort="ascending">库存商品编号</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										商品名称</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										库存数量</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										安全存量</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										虚拟库存量</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										aria-label="Last name: activate to sort column ascending">
										建议销售价</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 124px;"
										aria-label="Last name: activate to sort column ascending">
										操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach var="kucunlist" items="${lists }" varStatus="status">
									<tr role="row" class="odd">
										<td tabindex="0" class="sorting_1 id">${kucunlist.goodsId}</td>
										<td>${kucunlist.goodsname}</td>
										<td>${kucunlist.count }</td>
										<td>${kucunlist.safetyCount }</td>
										<td>${kucunlist.xuCount }</td>
										<td>${kucunlist.suggestprice}</td>
										<td>
                      <button type="button" class="btn btn-danger cha" gid="${kucunlist.goodsId}">查看</button>
                      <button type="button" class="btn btn-danger deleteApp" gname="${kucunlist.goodsname}" gshu="${kucunlist.count }" gid="${kucunlist.goodsId}">删除</button>
                      <c:if test="${kucunlist.isreturn==1 }"> <button type="button" class="btn btn-danger returninfo" gname="${kucunlist.goodsname}">退货信息</button></c:if>
                      
                      
										</td>
											</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
				<div id="toshow">
					<table id="test"  style="width:650px; float: center; margin:20px auto;   text-align: center; " border="1" cellspacing="0" " >
	
	
	<colgroup>
                        <col width="16%">
						<col width="16%">
						<col width="16%">
						<col width="16%">
						<col width="16%">
						<col width="20%">
					</colgroup>
					<thead id="thead" style="text-align: center; ">
						<tr  style="text-align: center; background-color: #f1f1f1f1; " >
							<th  style="text-align: center;">客户姓名</th>
							<th  style="text-align: center;">货品名称</th>
							<th  style="text-align: center;">退货数量</th>
							<th  style="text-align: center;">货品单价</th>
							<th  style="text-align: center;">总价</th>
							<th  style="text-align: center;">操作</th>
						</tr>
					</thead>
				
	<tr class="table-id" >
	<td></td>
	<td></td>
	<td></td>
	<td></td>
	<td></td>
	<td></td>
	</tr>
	
	</table>
	</div>
				<div class="row">
					<div class="col-sm-5">
						<div class="dataTables_info" id="datatable-responsive_info"
							role="status" aria-live="polite">共${pages.totalCount }条记录
							${pages.currentPageNo }/${pages.totalPageCount }页</div>
					</div>
					<div class="col-sm-7">
						<div class="dataTables_paginate paging_simple_numbers"
							id="datatable-responsive_paginate">
							<ul class="pagination">
								<c:if test="${pages.currentPageNo > 1}">
									<li class="paginate_button previous"><a
										href="javascript:page_nav(document.forms[0],1);"
										aria-controls="datatable-responsive" data-dt-idx="0"
										tabindex="0">首页</a>
									</li>
									<li class="paginate_button "><a
										href="javascript:page_nav(document.forms[0],${pages.currentPageNo-1});"
										aria-controls="datatable-responsive" data-dt-idx="1"
										tabindex="0">上一页</a>
									</li>
								</c:if>
								<c:if test="${pages.currentPageNo < pages.totalPageCount }">
									<li class="paginate_button "><a
										href="javascript:page_nav(document.forms[0],${pages.currentPageNo+1 });"
										aria-controls="datatable-responsive" data-dt-idx="1"
										tabindex="0">下一页</a>
									</li>
									<li class="paginate_button next"><a
										href="javascript:page_nav(document.forms[0],${pages.totalPageCount });"
										aria-controls="datatable-responsive" data-dt-idx="7"
										tabindex="0">最后一页</a>
									</li>
								</c:if>
							</ul>
						</div>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>
</div>
<%@include file="common/footer.jsp"%>
<script src="${pageContext.request.contextPath }/statics/kucun/rollpage.js"></script>
<script src="${pageContext.request.contextPath }/statics/kucun/appinfolist.js"></script>